<template>
	<view class="container">
		<view class="">
			<u-swiper :list="list1" height="600rpx" @change="change" @click="click"></u-swiper>
		</view>
		<view class="xuanfu">
			<view class="header">
				<view class="xinxi fl_al">
					<image src="../../static/tx.png" mode=""></image>微信用户
				</view>
			</view>
			<view class="diandan">
				<view class="fl_ju" style="padding-top: 20rpx;">
					<view class="kuang3" @click="go(0)" style="border-right: 1px solid #eeeeee;">
						<image src="../../static/mendian.png" class="mendian" mode=""></image>
						<view class="title">
							门店自取
						</view>
						<view class="txt">
							下单免排队
						</view>
					</view>
					<view class="kuang3" @click="go(1)">
						<image src="../../static/wm.png" class="mendian" mode=""></image>
						<view class="title">
							外卖点单
						</view>
						<view class="txt">
							无接触配送
						</view>
					</view>

					<!-- 	<view class="kuang" @click="yhq">
						<image src="../../static/yhq.png" class="mendian" mode=""></image>
						<view class="title">
							优惠券
						</view>
						<view class="txt">
							领取优惠券享限时折扣
						</view>
					</view>
					<view class="kuang" @click="qun">
						<image src="../../static/quanzi.png" class="mendian" mode=""></image>
						<view class="title">
							社区群
						</view>
						<view class="txt">
							社区群定时福利享不停
						</view>
					</view> -->
				</view>
				<view class="minlist fl_ju">
					<view class="minbox">
						<view class="son">
							<image src="../../static/icon4.png" mode=""></image>
						</view>
						优惠专享
					</view>
					<view class="minbox">
						<view class="son">
							<image src="../../static/icon3.png" mode=""></image>
						</view>
						我的优惠券
					</view>
					<view class="minbox">
						<view class="son">
							<image src="../../static/icon1.png" mode=""></image>
						</view>
						扫码进群
					</view>
					<view class="minbox">
						<view class="son">
							<image src="../../static/icon2.png" mode=""></image>
						</view>
						联系店长
					</view>
				</view>

			</view>

		</view>

	</view>
</template>

<script>
	import {
		baseModuleList
	} from '@/api/url.js'
	export default {
		data() {
			return {
				list1: []
			};
		},
		computed: {

		},
		onShow() {
			const res = wxLogin();

		},
		onLoad() {
			this.list()
		},
		methods: {
			list() {
				baseModuleList().then(res => {
					console.log(res)
					for(let i=0;i<res.data.rows.length;i++){
						this.list1.push(res.data.rows[i].picture)
					}
				})
			},
			change() {},
			go(e) {
				uni.navigateTo({
					url: '/pages/index/orderManagement?type=' + e
				})
			},
			yhq() {
				uni.navigateTo({
					url: '/pages/index/receive'
				})
			},
			qun() {
				uni.navigateTo({
					url: '/pages/index/receive'
				})
			},
		},
	};
</script>

<style lang="scss" scoped>
	.container {
		position: relative;
		background-color: #f2f2f2;
		height: 100vh;
	}

	.minlist {
		padding: 30rpx;
		box-sizing: border-box;
		margin-top: 40rpx;

		.minbox {
			text-align: center;

			.son {
				width: 100rpx;
				height: 100rpx;
				margin: 0 auto;
				border-radius: 50%;
				display: flex;
				align-items: center;
				justify-content: center;
				background: red linear-gradient(to top, #fff, #3AA3FF);
				margin-bottom: 20rpx;

				image {
					width: 70rpx;
					height: 70rpx;

				}
			}
		}
	}

	.xuanfu {
		position: absolute;
		top: 500rpx;
		left: 0;
		right: 0;
		padding: 30rpx;
		box-sizing: border-box;

		.diandan {
			width: 100%;
			background-color: #fff;
			border-bottom-left-radius: 15rpx;
			border-bottom-right-radius: 15rpx;
		}

		.header {
			background-color: #3AA3FF;
			padding: 20rpx;
			box-sizing: border-box;
			border-top-right-radius: 15rpx;
			border-top-left-radius: 15rpx;

			image {
				width: 80rpx;
				height: 80rpx;
				margin-right: 15rpx;
			}
		}
	}

	.xinxi {
		color: #fff;
	}

	.kuang3 {
		text-align: center;
		width: 49.5%;

		.mendian {
			width: 100rpx;
			height: 100rpx;
		}


		.title {
			color: #090909;
			font-size: 30rpx;
			margin: 10rpx 0;
			font-weight: 600;
		}

		.txt {
			color: #3F4041;
			font-size: 24rpx;
		}
	}
</style>